# -*- coding: utf-8 -*-

import logging
from logging import config

from utils.logger.config import logging_config


def set_root_logger(settings=None):
    if settings is None or not isinstance(settings, dict):
        logging.config.dictConfig(logging_config)
        return
